<?php
/**
 *
 *
 * @author Zeon <scplay@gmail.com>
 * @date 2019/5/28 14:36
 * @copyright PanxSoft Inc.
 */

namespace App\Http\Controllers\App\V1;


use App\Http\Controllers\ApiController;
use App\Services\EasySms\AliSMSCountry;

class AreaCodeController extends ApiController
{
    const ROUTES = [
        'index' => 'app.v1.area-code.index',
    ];

    /**
     * 国家区号
     *
     * @return array|\Illuminate\Http\Response
     * @throws \Exception
     */
    public function index()
    {
        $area_codes = AliSMSCountry::codes();

        return $this->response(compact('area_codes'));
    }
}